package com.byedu.domain.focus;

import com.byedu.util.CommonUtil;

/**
 * Created by Luo on 2017-09-07.
 */
public class FocusKpiDO {
    /*id*/
    private String id;
    /*员工userId*/
    private String userid;
    //年份
    private String pryear;
    //季度
    private String prjidu;
    /*指标数量*/
    private String kipnum;
    /*已完成项*/
    private String doneponum;
    /*开票金额*/
    private String billnum;

    //按产品分类， 按人员分类
    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getPrjidu() {
        return prjidu;
    }

    public void setPrjidu(String prjidu) {
        this.prjidu = prjidu;
    }

    public String getPryear() {
        return pryear;
    }

    public void setPryear(String pryear) {
        this.pryear = pryear;
    }

    public String getDoneponum() {
        return doneponum;
    }

    public void setDoneponum(String doneponum) {
        this.doneponum = doneponum;
    }

    public String getKipnum() {
        return kipnum;
    }

    public void setKipnum(String kipnum) {
        this.kipnum = kipnum;
    }

    public String getBillnum() {
        return billnum;
    }

    public void setBillnum(String billnum) {
        this.billnum = billnum;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public String toString() {
        return "FocusKpiDO{" +
                "id='" + id + '\'' +
                ", userid='" + userid + '\'' +
                ", pryear='" + pryear + '\'' +
                ", prjidu='" + prjidu + '\'' +
                ", kipnum='" + kipnum + '\'' +
                ", doneponum='" + doneponum + '\'' +
                ", billnum='" + billnum + '\'' +
                ", lendnum='" + lendnum + '\'' +
                '}';
    }

    private String lendnum;
    public String getLendnum() {
        return lendnum;
    }

    public void setLendnum() {
        this.lendnum = CommonUtil.doubletoStr(CommonUtil.stringToDouble(this.kipnum) - CommonUtil.stringToDouble(this.doneponum));
    }
}
